<template>
  <div class="user-two">
    <div class="user-top">
      <user-two></user-two>
      <user-two></user-two>
      <user-two></user-two>
      <user-two></user-two>
      <user-two></user-two>
    </div>
    <div class="user-bottom">
      <div>
        <div class="card">
          <div class="card-title">
            <div class="card-title-main">
              <span>最佳推荐人</span>
            </div>
            <div class="card-title-sub">
              <span>日榜</span><span>周榜</span><span>月榜</span
              ><span>总榜</span>
            </div>
          </div>
          <div class="card-content">
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
          </div>
        </div>
      </div>
      <div>
        <div class="card">
          <div class="card-title">
            <div class="card-title-main">
              <span>志同道合人</span>
            </div>
          </div>
          <div class="card-content">
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
          </div>
        </div>
      </div>
      <div>
        <div class="card">
          <div class="card-title">
            <div class="card-title-main">
              <span>有可能喜欢的人</span>
            </div>
          </div>
          <div class="card-content">
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
            <user-process></user-process>
          </div>
        </div>
      </div>
    </div>
    <div class="modal" v-if="payVis">
      <img
        style="
          position: absolute;
          width: 24px;
          height: 24px;
          z-index: 1;
          right: 8px;
          top: 2px;
        "
        :src="require('@/assets/close.png')"
        alt=""
        @click="payVis = false"
      />
      <div class="content">
        <div>
          <el-image style="height: 200px; width: 200px"></el-image>
        </div>
        <el-upload
          class="upload-demo"
          drag
          action="https://jsonplaceholder.typicode.com/posts/"
          multiple
        >
          <el-icon class="el-icon--upload"><upload-filled /></el-icon>
          <div class="el-upload__text">
            <em>点击或拖拽上传</em>
          </div>
        </el-upload>
        <el-input
          v-model="textarea"
          :rows="2"
          type="textarea"
          placeholder="或再次输入订单详情"
        />

        <el-button type="info">提交</el-button>
        <div>
          <p>说明文字说明文字说明文字说明文字说明文字说明文字</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import UserProcess from "../components/UserProcess.vue";
import UserTwo from "../components/UserTwo.vue";

import { UploadFilled } from "@element-plus/icons";

export default {
  components: { UserTwo, UserProcess },
  data() {
    return {
      list: [
        "https://heikaimu.github.io/images/1.jpeg",
        "https://heikaimu.github.io/images/2.jpeg",
        "https://heikaimu.github.io/images/3.jpeg",
        "https://heikaimu.github.io/images/1.jpeg",
        "https://heikaimu.github.io/images/2.jpeg",
        "https://heikaimu.github.io/images/3.jpeg",
        "https://heikaimu.github.io/images/1.jpeg",
        "https://heikaimu.github.io/images/2.jpeg",
        "https://heikaimu.github.io/images/3.jpeg",
      ],
      payVis: true,
    };
  },
  computed: {
    itemWidth() {
      return 138 * 0.5 * (document.documentElement.clientWidth / 375); // #rem布局 计算宽度
    },
    gutterWidth() {
      return 9 * 0.5 * (document.documentElement.clientWidth / 375); //#rem布局 计算x轴方向margin(y轴方向的margin自定义在css中即可)
    },
  },
  //下边的内容没有用到，需要的小伙伴可以看文档了解，如果需求后续回更新
  methods: {
    scroll(scrollData) {
      console.log(scrollData);
    },
    switchCol(col) {
      this.col = col;
      console.log(this.col);
    },
    loadmore(index) {
      this.data = this.data.concat(this.data);
    },
    handleClickCard() {},
  },
};
</script>

<style scoped>
.user-two {
  height: 100%;
}
.user-top {
  /* height: 120px; */
  width: 100%;
  /* background-color: #dffdfd; */
  display: flex;
}
.user-bottom {
  display: flex;
}
.user-bottom > div {
  width: 33.33%;
}

.card {
  /* color: #000000; */
}
.card-title {
  display: flex;
  padding: 2px;
  border-bottom: 1px solid lightblue;
}
.card-title-main {
  font-size: 16px;
  font-weight: bold;
  margin-right: 12px;
}
.card-title-sub {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.card-title-sub span {
  padding: 0 4px;
}

.modal {
  height: 700px;
  width: 500px;
  border-radius: 20px;
  background-color: #252525;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  z-index: 10;
}
.content {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
}
</style>
